#ifndef CCPU_H
#define CCPU_H
#include <glog/logging.h>
#include <string>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string>
#include <unistd.h>
#include <vector>
#include <errno.h>
#include <iostream>
#include <algorithm>
#include <sstream>
class CCpu
{
public:
	CCpu();
	~CCpu();
	std::string getCpuMhz();
	std::string getCpuGhz();
private:
	std::string cpuFreqMhz;
	std::string cpuFreqGhz;
	const std::string cpuPath = "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq";
};

#endif //CCPU_H